.layer-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: white;
  min-height: 0;
  overflow: hidden;
}

.layer-panel-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px;
  min-height: 0;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  color: #9ca3af;
}

.empty-state p {
  margin: 8px 0 0 0;
}

.layer-list {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.layer-list-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  transition: all 0.2s;
  cursor: grab;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  user-select: none;
}

.layer-list-item:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.layer-list-item:active {
  cursor: grabbing;
}

.layer-list-item.dragging {
  opacity: 0.5;
  background-color: #f3f4f6;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  cursor: grabbing;
}

.layer-checkbox {
  margin-right: 10px;
  cursor: pointer !important;
}

.layer-checkbox .ant-checkbox-inner {
  border-radius: 3px;
  cursor: pointer !important;
}

.layer-type-icon {
  color: #6b7280;
  font-size: 18px;
  margin-right: 10px;
}

.layer-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}

.layer-menu-btn {
  opacity: 0;
  transition: opacity 0.2s;
  cursor: pointer !important;
}

.layer-list-item:hover .layer-menu-btn {
  opacity: 1;
}

.layer-menu-btn:hover {
  background-color: #f3f4f6;
  cursor: pointer !important;
}

.layer-panel-footer {
  padding: 8px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

/* 分组图层样式 */
.layer-list-item.layer-group {
  background-color: #f3f4f6;
  font-weight: 600;
}

.layer-list-item.layer-group:hover {
  background-color: #e5e7eb;
}

.layer-expand-btn {
  margin-right: 4px;
  cursor: pointer !important;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.layer-expand-btn:hover {
  background-color: #d1d5db;
  cursor: pointer !important;
}
